#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class StaffAssess : Business.BusinessBase<StaffAssess, int>
	{
		#region Fields and Properties

		private Decimal assessScore = 0.0m;
		/// <summary>
		/// 
		/// </summary>
		public Decimal AssessScore
		{
			get { return assessScore; }
			set
			{
				if (value != assessScore)
				{
					MarkChanged("AssessScore");
					assessScore = value;
				}
			}
		}

		private String assessCate = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String AssessCate
		{
			get { return assessCate; }
			set
			{
				if (value != assessCate)
				{
					MarkChanged("AssessCate");
					assessCate = value;
				}
			}
		}

		private String staffCate = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String StaffCate
		{
			get { return staffCate; }
			set
			{
				if (value != staffCate)
				{
					MarkChanged("StaffCate");
					staffCate = value;
				}
			}
		}

		private String staffCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String StaffCode
		{
			get { return staffCode; }
			set
			{
				if (value != staffCode)
				{
					MarkChanged("StaffCode");
					staffCode = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public StaffAssess()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override StaffAssess DataSelect(int id)
		{
			return Services.DALService.StaffAssessService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.StaffAssessService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.StaffAssessService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.StaffAssessService.Delete(this);
		}

		#endregion Base overrides
	}
}
